﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="dahboard_partner.aspx.cs" Inherits="admin_partner_dahboard_partner" %>


<%@ Import Namespace="System" %>
<%@ Import Namespace="System.Collections" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Data.SqlClient" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
 <link rel="shortcut icon" type="image/jpg" href="../images/logo/logo_feas.jpg" />
<title>Real estate</title>
<script src="../js/html5.js"></script>
<script type="text/javascript" src="../js/jquery.js"></script>
<script type="text/javascript" src="../js/jquery-1.8.0.js"></script>
<script type="text/javascript" src="../js/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="../js/utility.js"></script>
<script src="../js/jquery.min.js"></script>
<script src="../js/bootstrap-modal.js"></script>


<!--<script type="text/javascript" src="../js/sticky_footer.js"></script>-->

<link rel="stylesheet" type="text/css" href="../css/metro-bootstrap.css"/>
    <link rel="stylesheet" href="../docs/font-awesome.css"/>

<link rel="stylesheet" type="text/css" href="../css/master.css" />
<link rel="stylesheet" type="text/css" href="../css/dropBox.css"/>
<link rel="stylesheet" type="text/css" href="../css/menu.css"/>
<link rel="stylesheet" type="text/css" href="../css/tooltip.css"/>
<link rel="stylesheet" type="text/css" href="../css/buttons.css"/>
<script type="text/javascript" 
        src="http://www.google.com/jsapi"></script>
<script type="text/javascript">

    // Initialize version 1.0 of Google AJAX API
    google.load("language", "1");

    function translate(lang) {
        var source = document.getElementById("article").innerHTML;
        var len = content.length;

        // Google Language API accepts 500 characters per request 
        var words = 500;

        // This is for English pages, you can change the
        // sourcelang variable for other languages
        var sourcelang = "en";
        document.getElementById("translation").innerHTML = "";

        for (i = 0; i <= (len / words); i++) {
            google.language.translate(source.substr(i * words, words),
                 "en", lang, function (result) {
                     if (!result.error) {
                         document.getElementById("translation").innerHTML
           = document.getElementById("translation").innerHTML
           + result.translation;
                     }
                 });
        }

        // Hide the text written in the original language
        document.getElementById("article").style.display = 'none';
        return false;
    }

    // Switch to the original language

    function original() {
        document.getElementById("translation").style.display = 'none';
        document.getElementById("article").style.display = 'block';
        return false;
    }
</script>

    <script type="text/javascript">

        $(document).ready(function () {


            $.countNewEmail();
        });
        $.countNewEmail = function () {

            $.post("notify.aspx", {
                requestFrom: "countNewEmail"
            },
function (data, status) {
    $("span#Email_info_count1").html(data);
});
        };
</script>


</head>
<%
    int i;
    %>

<body>
<form id="form1" runat="server">
<asp:Label ID="Label2" runat="server" Text="Label" Visible="false"></asp:Label>
    <div id="wrapper">
<div id="header"><a href="#"> <img src="../images/logo/logo_feas.png" alt="Logo" style="margin-top:7px;margin-left:7px;float:left;"> <img src="../images/logo/logo_feas2.png" alt="Logo" class="logo"></a>
    <div id="metaphors" align="right">
       <li id="btnemail" ><img src="../images/icons/mail.png" alt="Emails" </li><a data-toggle="modal" href="#addtask" id="btnemail" style="font-weight:bold;">Updates</a>
      <span id="Email_info_count1"  class="info_count" title="Date Renew" rel="tooltip">0</span>
      
      
      <li id="btntheme"><a href="#"><span class="theme_icon"></span>Theme<span class="arrow"></span></a></li>
      <img src="../images/face1.png" class="user_icon">
      <li id="btnUser"><a href="#">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:label ID="Label1" runat="server" text="Label"></asp:label><span class="arrow"></span></a></li>
       <li><span class="logout_icon"></span>
           <asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click">Logout</asp:LinkButton> 
             </li>
      <div id="box3" class="outerbox">
        <div id="box_inner3" class="innerbox">
         
        </div>
      </div>
      <div id="box2" class="outerbox">
        <div id="box_inner3" class="innerbox">
          <div class="user_option"><img src="../images/icons/user.png" class="opt_icon">alert</div>
          <div class="user_option"><img src="../images/icons/pencil.png" class="opt_icon">alert</div>
        </div>
      </div>
      <div id="box1" class="outerbox">
        <div id="box_inner1" class="innerbox">
          <div class="user_option1">
            <h4 class="opt_heading">Menu Bar</h4>
            <span id="show_menu" class="style">on</span><span id="hide_menu" class="style2">off</span></div>
        </div>
      </div>
      <div id="box" class="outerbox">
        <div id="box_inner" class="innerbox">
          <div class="user_option"><img src="../images/icons/user.png" class="opt_icon">Edit Profile</div>
          <div class="user_option"><img src="../images/icons/pencil.png" class="opt_icon">Change Password</div>
        </div>
      </div>
    </div>
    <!--End of the metaphor tag--> 
    
  </div>
  <!--End of the Header tag-->
   <div id="contentliquid">
    <div id="content">
      <div id="titalbar">
        <h1>Dashboard</h1>
        
      </div>
      <h1 style="font-size:24px; color:#A00; padding-top:10px; padding-bottom:15px; padding-left:25px">Welcome 
          <asp:Label ID="Label4" runat="server"></asp:Label></h1>
      <h2 style="font-size:16px; color:#A00; padding-top:2px; padding-bottom:5px; padding-left:25px">
          <asp:Label ID="Label3" runat="server"></asp:Label></h2>
        <table cellspacing="45" style="text-align:center;">
            <tr>
                <td>
                    

                        <ul class="thumbnails" style="padding-right:50px; padding-left:50px">
                            <li class="span3 tile ">
                                 <a href="partner_client_add.aspx" >
                                        <img src="../images/icons/Client_Male_Light.png">
                                         <h2>Cients</h2>
                                 </a>
                            </li>
                       </ul>
                </td>
                <td>
                    <ul class="thumbnails" style="padding-right:50px; padding-left:50px;">
                            <li class="span3 tile " style=" background-color:#FF981D">
                                 <a href="partner_add_property.aspx" >
                                        <img src="../images/icons/icon_lg_commercial.png">
                                         <h2>Properties</h2>
                                 </a>
                            </li>
                       </ul>
                </td>
                <td>
                    <ul class="thumbnails" style="padding-right:50px; padding-left:50px">
                            <li class="span3 tile " style=" background-color:#180052">
                                 <a href="partner_add_request.aspx" >
                                        <img src="../images/icons/Open-Folder-Add.png">
                                        <h2> Requests</h2>
                                         
                                 </a>
                            </li>
                       </ul>
                </td>
            </tr>
            <tr>
                <td style="height:15px">
                  &nbsp;</td>
                <td style="height:15px">
               &nbsp; </td>
                <td style="height:15px">
                &nbsp;</td>
            </tr>
            <tr>
                <td>
                    <ul class="thumbnails" style="padding-right:50px; padding-left:50px">
                            <li class="span3 tile " style=" background-color:#FF2E12">
                                 <a href="partner_Add_agent.aspx" >
                                        <img src="../images/icons/Add-Male-User.png">
                                         <h2>Agent</h2>
                                 </a>
                            </li>
                       </ul>
                </td>
                <td>
                   <ul class="thumbnails" style="padding-right:50px; padding-left:50px">
                            <li class="span3 tile " style=" background-color:#128425">
                                 <a href="" >
                                        <img src="../images/icons/kview.png">
                                         <h2>Search</h2>
                                 </a>
                            </li>
                       </ul>
                </td>
                <td>
                    <ul class="thumbnails" style="padding-right:50px; padding-left:50px">
                            <li class="span3 tile " style=" background-color:#9E1716">
                                 <a href="ViewProfilePartner.aspx" >
                                        <img src="../images/icons/profiles-b.png">
                                         <h2>Profile</h2>
                                 </a>
                            </li>
                       </ul>
                </td>
            </tr>
            <tr>
               <td>
                  <asp:Panel ID="Panel1" runat="server" Visible ="false">
                   <ul class="thumbnails" style="padding-right:50px; padding-left:50px">
                            <li class="span3 tile " style=" background-color:#180052">
                                 <a href="reminder.aspx" >
                                        <img src="../images/icons/rem.png">
                                        <h2>View Reminder</h2>
                                        </a>
                                         <br />
                                         <br />
                                <h1><asp:Label ID="Label6" runat="server" Text="Label" Visible ="false "></asp:Label><asp:Label ID="Label5" runat="server" Text="Label" Visible ="false "></asp:Label></h1>
                            </li>
                       </ul>
                        </asp:Panel>
                    </td>
                <td>
                    </td>
                <td>
                    </td>
            </tr>
        </table>
         <div>
        <!-- Main Menu -->
        
            
    </div>

    </div>
      
  </div>

<div id="leftcolumn">
 <div id="leftcolumn_top">
  <%  SqlConnection con = null;
        con = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnStr"].ConnectionString);
      con.Open();
      SqlCommand cmd = new SqlCommand("SELECT * FROM request5 where status1='0'", con);
      
      SqlDataReader dr = cmd.ExecuteReader();
      int i = 0;
    

      while (dr.Read())
      {
         
          i = i + 1;

         // Response.Write("<span style=\"border-bottom:1px solid #CCC;width:100%;padding:5px;\">");
        

      

         
      }

   
    
      dr.Close();
      con.Close(); %>
      <div id="addtask" class="modal hide fade in" style="display: none; ">
        <div class="modal-header"> <a class="close" data-dismiss="modal">x</a>
          <h1 style="font-size:15px;padding:7px;font-weight:bold;">Notification's</h1>
        </div>
        <div class="modal-body">
        <table id="tbl_task" class="model_popup_desgin">
  <tr>
    <td><p> You have a recent&nbsp;&nbsp<%=i%>&nbsp;&nbsp;update on date</p></td>
  </tr>
  <tr>
     
   
  </tr>
  <tr>
      
  </tr>
  <tr>
    <td></td>
  </tr>
</table>

          
          </div>
        <div class="modal-footer">  <asp:Button ID="Button2" runat="server" Text="cancel" 
                CssClass="btn btn-success" Visible="False" />
            <asp:Button ID="Button1" runat="server" Text="View" CssClass="btn btn-success" 
                onclick="Button1_Click" Visible="False" /> <p><a data-toggle="modal" href="#addtask1" class="btn btn-success" style="font-weight:bold;"><img src="../images/icons/task.png" style="margin-right:7px;" />View</a></p></div>
      </div>
       <div id="addtask1" class="modal hide fade in" style="display: none; ">
        <div class="modal-header"> <a class="close" data-dismiss="modal">x</a>
          <h1 style="font-size:15px;padding:7px;font-weight:bold;">Notification's</h1>
        </div>
        <div class="modal-body">
        

    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="SqlDataSource3" CssClass ="mGrid " onrowcommand="GridView1_RowCommand" >
        <Columns>
            <asp:BoundField DataField="r_id" HeaderText="Request ID" SortExpression="r_id" />
            <asp:BoundField DataField="added" HeaderText="Added By" SortExpression="added" />
          <asp:ButtonField ButtonType="Image" CommandName="active" HeaderText="View" ImageUrl="../images/icons/cross.png"
              Text="View" />
             
        </Columns>
       
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource3" runat="server" 
        ConnectionString="<%$ ConnectionStrings:real_estateConnectionString %>" 
        SelectCommand="SELECT [r_id], [added] FROM [request5]  WHERE ([status1] = @status1) ">
        <SelectParameters>
            <asp:ControlParameter ControlID="Label2" Name="status1" PropertyName="Text" 
                Type="String" />
        </SelectParameters>
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server"></asp:SqlDataSource>
    <br />
    <br />
    <asp:SqlDataSource ID="SqlDataSource1" runat="server"></asp:SqlDataSource>

          
        </div>
        <div class="modal-footer">  <asp:Button ID="Button3" runat="server" Text="cancel" CssClass="btn btn-success" Visible="False" />
            <asp:Button ID="Button4" runat="server" Text="Done" CssClass="btn btn-success" 
                onclick="Button1_Click" Visible="False" /></div>
      </div>
      
 </div>
    <ul id="nav">
      <li><a href="dahboard_partner.aspx"><img src="../images/icons/home.png" class="menu_icon">Dashboard</a> </li>
      <li><a href="#"><img src="../images/icons/form.png" class="menu_icon">Client Master</a>
        <ul>
          <li><a href="add_new_client.aspx"><img src="../images/icons/tabs.png" class="menu_icon">Add new client</a></li>
          <li><a href="Clients.aspx"><img src="../images/icons/tabs.png" class="menu_icon"> Edit Clients</a></li>
         
        </ul>
      </li>
      <li><a href="#"><img src="../images/icons/std.png" class="menu_icon">Properties Master</a>
        <ul>
          <li><a href="partner_add_property.aspx"><img src="../images/icons/plus.png" class="menu_icon">Property Details</a></li>
          <li><a href="Partner_Search_Property.aspx"><img src="../images/icons/pencil.png" class="menu_icon">Search/Edit Property </a></li>
          <li><a href=""><img src="../images/icons/zoom.png" class="menu_icon">Search Record</a></li>
          <li><a href="prop_reports_partner.aspx"><img src="../images/icons/pages.png" class="menu_icon">Reports</a></li>
        </ul>
      </li>
      <li><a href="#"><img src="../images/icons/forms.png" class="menu_icon"> Requests Details</a>
        <ul>
          <li><a href="partner_add_request.aspx">Add Requests </a></li>
     
          <li><a href="partnerRequestReport.aspx">Reports</a></li>
        </ul>
      </li>
      <li><a href="#"><img src="../images/icons/forms.png" class="menu_icon"> Agent Details</a>
        <ul>
          <li><a href="partner_Add_agent.aspx">Add Agents </a></li>
          <li><a href="partner_agent_edit.aspx">Edit  Record</a></li>
         
          <li><a href="partner_AgentReport.aspx">Reports</a></li>
        </ul>
      </li>
     <li><a href="#"><img src="../images/icons/forms.png" class="menu_icon">Profile Management</a>
        <ul> <li><a href="ViewProfilePartner.aspx"> My Profile</a></li>
        </ul>
      </li>
      <li><a href="#"><img src="../images/icons/id.png" class="menu_icon"> Search</a>
        <ul>
          <li><a href="paretner_notes.aspx" >Notes</a></li>
       
          <li><a href="partner_task.aspx" >Tasks</a></li>
          <li><a href="partner_property_sell_buy.aspx">Properties to buy/sell/rent</a></li>
        </ul>
      </li>
     
      
    </ul>
  </div>
  


   <div id="footer">
    <p> Copyright &copy; 2013. II technology</p>
  </div>

</div>
</form>
</body>
</html>